package com.sinosoft.hydra.um.services.component.dataCollect.readers;

import com.sinosoft.hydra.um.services.component.dataCollect.DataParser;
import com.sinosoft.hydra.um.services.component.dataCollect.DataReader;
import com.sinosoft.hydra.um.services.component.dataCollect.DataResult;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/8/17.
 */
public class ReadUtils {

    public static List<String> doFiler(List<String> cells, List<Integer> columsN) {
        List<String> _cells = new ArrayList<String>();
        for (int i : columsN) {
            if (i < 0 || i >= cells.size()) {
                _cells.add("");
            } else {
                _cells.add(cells.get(i));
            }
        }
        return _cells;
    }

}
